package org.jshand.jxc.business.book.panel;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JPanel;

public class StatusPanel extends JPanel {

	private String message ;
	
	
	
	public StatusPanel() {
		super();
		this.setBackground(Color.darkGray);
	}

	@Override
	public void paint(Graphics g) {
		super.paint(g);
		Font font = new Font("微软雅黑", Font.ITALIC|Font.BOLD, 14);
		g.setFont(font);
		g.setColor(Color.WHITE);
		g.drawString(message, 10, 20);
	}
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
		revalidate();
		repaint();
		
	}

	
	
	
	
	
}
